﻿
	

function LoadControl() {
    debugger;
    $.ajax({
        type: "POST",
        url: "/Services/ControlLoader.asmx/LoadControl",
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (msg) {
            $('#ProfileDiv').html(msg.d);
        }
    });
}

function LoadNewPost() {
    debugger;
    $.ajax({
        type: "POST",
        url: "/Services/ControlLoader.asmx/LoadNewPost",
        data: "{Data:'TESTDATA'}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (msg) {
            $('#breakingNews').prepend(msg.d);
        }
    });

}


function LoadDragAndDrop() {
    $.ajax({
        type: "POST",
        url: "/Services/ControlLoader.asmx/LoadDragAndDrop",
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: function (msg) {
            $('#DragDropArea').html(msg.d);
        }
    });
}